package common.fengkai.filepost.interceptor;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.sql.Array;
import java.util.ArrayList;


@Data
@AllArgsConstructor
@NoArgsConstructor
public class User {
    private String username;
    private String password;

       public static void main(String[] args){
           User aaaa = new User("111", "aaaa");
           User bbbb = new User("111", "bbbb");
           User cccc = new User("111", "cccc");
           User dddd = new User("111", "dddd");
           User eeee = new User("111", "eeee");
           User ffff = new User("111", "ffff");
           ArrayList<User> users = new ArrayList<>();
           users.add(ffff);
           users.add(aaaa);
           users.add(bbbb);
           users.add(cccc);
           users.add(dddd);
           users.add(eeee);
           users.stream().forEach( k ->{
               System.out.println(k.password);
               k.setUsername("abcde");
           });
           users.stream().forEach( v ->{
               System.out.println(v.getUsername());
           });

       }
}


